package com.example.springbootseata.stu.service.stuservice;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.springbootseata.stu.dao.StuDao;
import com.example.springbootseata.stu.entity.Stu;
import com.example.springbootseata.stu.service.IStuService;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.stereotype.Service;

@Service
public class StuServiceImpl extends ServiceImpl<StuDao, Stu> implements IStuService {


    @Override
    @GlobalTransactional
    public void saveAll(Stu stu) {
        this.save(stu);
    }
}
